package com.appoint.common.utils;


import com.appoint.common.dto.Result;

/**
 * Result生成工具类
 *
 * @version 1.0
 * @author baode 2021/1/1522:03
 */
public class ResultUtils {

    protected ResultUtils() {}

    public static Result newResult() {
        return new Result();
    }

    public static Result newResult(Object data) {
        return new Result(data);
    }

    public static Result newResult(String code, String msg) {
        return new Result(code, msg);
    }
}
